#include <stdio.h>

void get_num_apples() {
  int K, T;
  int n = -1;
  scanf("%d %d", &K, &T);
  // your code - start
  int sum = 0, i;
  // your code - start
  for (i = 0; sum != T; i++)
  {
    sum += pow(2, i) * K;
  }
  n = i;
  // your code - end
  printf("%d", n);

}

int main() {
  get_num_apples();
}